<?php

namespace App\Models\User\Vote;

use Illuminate\Database\Eloquent\Model;

class Logs extends Model
{
    protected $table="user_vote_logs";

    protected $fillable = [
        'x_uid','build_id', 'count'
    ];

    protected $hidden = [
        'remember_token',
    ];

    public function users(){
        return $this->hasOne('App\Models\WxUser','id','x_uid');
    }

    public function build(){
        return $this->hasOne('App\Models\Buildings','id','build_id');
    }
}
